package com.nanc.handler;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.nanc.entities.Employee;
import com.nanc.service.EmployeeManageService;

@Controller
@RequestMapping("/employee")
public class EmployeeManage {
	
	@Autowired
	private EmployeeManageService employeeManageService;
	
	@ResponseBody
	@RequestMapping("/getAllEmployee")
	public List<Employee> getAllEmployee(){
		return employeeManageService.getAllEmployee();
	}
}
